package com.itheima.reggie.config;

import com.github.pagehelper.PageHelper;
import com.itheima.reggie.utils.IdWorker;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MybatisConfig {
    @Bean
    public PageHelper pagehelper(){
        return new PageHelper();
    }

    @Bean
    public IdWorker idWorker(){
        return new IdWorker(1,1);
    }
}
